#ifndef INFOCHATWIDGET_H
#define INFOCHATWIDGET_H

#include <QtCore>
#include <QPointer>

#include "ui_InfoChatWidgetUI.h"

#include "AttributeWidget.h"
#include "RoComponent.h"

class InfoChatWidget : public QWidget, public Ui::infoChatWidgetUI
{
    Q_OBJECT
public:

    typedef QWidget super;

    explicit InfoChatWidget( QPointer<RoComponent> component, QTabWidget *parent = 0, QString name = QString() );
    ~InfoChatWidget() {}
    void addLogText(QString text);
    void setActions();
signals:

public slots:
    void addInfoAttribute();
    void closeProperly();
    void deleteInfoAttribute();
    void logInfoText(const RoInfoStanza& stanza);
    void sendInfo();
private:
    QTabWidget* parentTabWidget;
    QString _name;
    QList<AttributeWidget*> attributeWidgets;
    QPointer<RoComponent> _component;
};

#endif // INFOCHATWIDGET_H
